#ifndef BUFFERMANGER_H
#define BUFFERMANGER_H

#include "buffer.h"
#include <QMutex>
#include <QSharedPointer>

class BufferManger
{
public:
    BufferManger();
    ~Buffer Manager();
    QSharedPointer <Buffer> getBuffer();
    utilize(QSharedPointer <Buffer> buffer);
    changeSizes(Buffer::Size size);
protected:
    QList< QSharedPointer<Buffer> > pool;
};

#endif // BUFFERMANGER_H
